// 大单重置
import {Component, Prop, Vue} from 'vue-property-decorator'
import btnResetPrint from './btn_reset_print.tsx'
import {store} from '@/store/index'

@Component({})
export default class btnResetIntimidate extends btnResetPrint{
    name:string = 'btn-reset-intimidate'

    get disabled(){
        return this.singleStatus !== '已打单'
    }

    clickFn (){

        this.commitCurrentSingle(this.mod.key)

        store.dispatch('request', {
            url:'patch/single/id',
            data:{
                singleState: '已集印'
            }
        })
        
    }
    
}